fix: leftover pv_charging topic paths from PR #3812 topic migration - #3941
Merged
LKuemmel merged 1 commit intoSep 15, 2026
Merged
Conversation
…tion processAllMqttMsg.js: standard_legacy's message dispatcher still only matched the old chargemode_config/pv_charging/ prefix, so the retained bat_mode message never reached processPvConfigMessages() after it moved to chargemode_config/bat/mode - the Überschussverwendung radio buttons never showed the persisted selection on page load (only after manually clicking one, via a separate local handler). ParameterHandler.php: setBatPowerReserve() was left publishing to the old pv_charging/bat_power_reserve topic, which setdata.py no longer validates - the endpoint reported success without actually changing the reserve (same migration Copilot already flagged for bat_mode on PR openWB#3812, but missed for bat_power_reserve).
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The Colors themes still publish battery mode changes to the obsolete topic.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Updates remaining MQTT topic references after the charging configuration migration.
Changes:
- Moves SimpleAPI battery reserve writes to the canonical topic.
- Updates legacy theme battery mode message routing.
File summaries
| File | Description |
|---|---|
simpleAPI/src/ParameterHandler.php |
Updates battery reserve topic and documentation. |
packages/modules/web_themes/standard_legacy/web/processAllMqttMsg.js |
Routes the migrated battery mode topic. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 1
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| else if (mqttTopic.match(/^openWB\/chargepoint\//i)) { processChargePointMessages(mqttTopic, mqttPayload); } | ||
| else if (mqttTopic.match(/^openWB\/vehicle\//i)) { processVehicleMessages(mqttTopic, mqttPayload); } | ||
| else if (mqttTopic.match(/^openWB\/general\/chargemode_config\/pv_charging\//i)) { processPvConfigMessages(mqttTopic, mqttPayload); } | ||
| else if (mqttTopic.match(/^openWB\/general\/chargemode_config\/bat\/mode$/i)) { processPvConfigMessages(mqttTopic, mqttPayload); } |
Collaborator
Author
There was a problem hiding this comment.
For Colors Theme @cshagen will take care of the implementation: #3466 (comment)
Contributor
There was a problem hiding this comment.
Da ging es eher um die neuen Features. Ich habe noch einen PR erstellt #3946
LKuemmel
approved these changes
Sep 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix leftover topics from #3812
Fix: #3908 (comment)